<?php
/**
 * 生成二维码
 * @author  yw
 */
require_once FCPATH . 'plugins/phpqrcode/phpqrcode.php';

class Php_qrcode
{

    public function __construct()
    {

    }
    /**
     * [png 生成二维码]
     * @param  [type] $value    [url的值]
     * @param  [type] $filename [文件名]
     * @param  [type] $level    [容错级别]
     * @param  [type] $length   [生成图片大小]
     * @param  [type] $width    [边距大小]
     * @return [type]           [description]
     */
    public function png($value,$filename,$level,$length,$width)
    {
        return QRcode::png($value, $filename, $level, $length, $width);
    }

    public function export($value)
    {
        return QRcode::png($value);
    }

}
